package com.scala.listdemo

import scala.collection

/**
  * Created by Administrator on 2017/7/5.
  */
object SeqDemo {


  def digits(n: Int): Set[Int] = {
    if (n < 0) {
      digits(-n)
    } else if (n < 10) {
      Set(n)
    } else {
      digits(n / 10) + n % 10
    }
  }




  def main(args: Array[String]): Unit = {
    var seq = Seq[Int]()

    var set=Set[Int]()

    set=set+1
    set=set+(2,3,4)

    println(set



    )


    println(seq)

  }

}
